<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 
 class Myclass
 {
	 var $type = '';
	 var $color = '';

	 public function __construct($params)
	 {
		 log_message('debug', "Myclass Class Initialized");
		 $this->type = $params['type'];
		 $this->color = $params['color'];
	 }

	 function first()
	 {
		 echo '自己写的类库哦'.$this->color;
	 }

	 function second()
	 {
		 $CI =& get_instance();
		 
		 $CI->load->helper('array');

		 echo '使用CI的资源 '.new_in_array();
	 }
 }


/* End of file Myclass.php */
/* Location: ./application/libraries/Myclass.php */